import web
import time
from base import Base

class AddPet(Base):
	
	def POST(self):
		input = web.input()
		input["age"] = int(input["age"])
		print(input)
		input = dict(input)
		results = self.db.query("INSERT into Pet(Shelter_Name, Age, Gender, Pet_Name) values ($shelter_name, $age, $gender, $pet_name)",
			vars=input
		)
		return str(results)
		
		